# catching errors in python
try:
    # testcase = 10 / 0
    number = int(input("Enter a unmber: "))
    print(number)
except ZeroDivisionError:
    print("divided by zero")
# except ValueError:
#     print("value input error")
except ValueError as err:
    print("value input error way 2")

# due to except is too broad, it's not the best way to specify the error
# except:
#     print("the number you input have to be an integer.")
